Skip to content

Add Fuzz Tests for RVM Instructions#507

Merged
mohanson merged 1 commit intonervosnetwork:developfrom
yuqiliu617:contrib/fuzz/m
Apr 2, 2026
Merged

Add Fuzz Tests for RVM Instructions#507
mohanson merged 1 commit intonervosnetwork:developfrom
yuqiliu617:contrib/fuzz/m

Conversation

@yuqiliu617
Copy link
Copy Markdown
Contributor

Add fuzz tests for the M instruction set (multiplication and division)

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new fuzz target covering the RISC-V M extension (mul/div/rem) and refactors existing fuzz targets to share common helper utilities.

Changes:

  • Added isa_m libFuzzer target to differential-test M instructions across Spike, the interpreter core, and the asm core.
  • Extracted shared fuzz utilities (byte deque + register equivalence assertion) into fuzz_targets/utils.rs and reused them in isa_a/isa_b.
  • Updated fuzz harness configuration and ignore patterns (isa_m bin entry; ignore coverage/ output).

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
fuzz/fuzz_targets/utils.rs New shared helpers for deterministic byte consumption and register comparison across engines
fuzz/fuzz_targets/isa_m.rs New fuzz target for M-extension instructions (MUL/DIV/REM + W variants)
fuzz/fuzz_targets/isa_b.rs Refactor to reuse shared Deque and common register comparison helper
fuzz/fuzz_targets/isa_a.rs Refactor to reuse shared Deque and common register comparison helper
fuzz/Cargo.toml Registers new isa_m fuzz binary target
fuzz/.gitignore Ignores generated coverage/ directory

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread fuzz/fuzz_targets/utils.rs Outdated
@yuqiliu617 yuqiliu617 force-pushed the contrib/fuzz/m branch 2 times, most recently from 5889ec9 to f367046 Compare April 1, 2026 21:46
@mohanson mohanson merged commit 1f2b3f8 into nervosnetwork:develop Apr 2, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants